import request, { Method } from '@/utils/axios';

// 获取店员审核列表
export function getStaffAuditList(params: any) {
  return request({
    url: '/assistant/getStoreAssistantList',
    method: Method.GET,
    needToken: true,
    params,
  });
}

// 审核通过
export function approveStaffApplication(params: any) {
  return request({
    url: '/assistant/checkStoreAssistant',
    method: Method.PUT,
    needToken: true,
    data: params,
  });
}

// 审核不通过
export function rejectStaffApplication(params: any) {
  return request({
    url: '/assistant/checkStoreAssistant',
    method: Method.PUT,
    needToken: true,
    data: params,
  });
}

export function getAssistant(id: any) {
  return request({
    url: `/assistant/${id}`,
    method: Method.GET,
    needToken: true,
  });
}
